// 04jyhs/shoppingMallAdmin/MallOrderAdmin/MallOrderDetail/MallOrderDetail.js
var co = require("../../../../resource/js/common.js")
var _this,_data
Page({

  /**
   * 页面的初始数据
   */
  data: {
     orderID:null,//订单id
     orderDetailInfo:[],//订单详情信息
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (opt) {
     _this = this
     _data = _this.data
     var orderID = opt.orderID
     _this.setData({
        orderID: orderID
     })
     _this.getMallOrderDetail()
  }, 
  //获取订单详情
  getMallOrderDetail() {
     co.getMealApi("jyhs/Ordmg/getOrder",{
        Order_ID : _data.orderID
     },function(res){
        if(res.code == 0){
           _this.setData({
              orderDetailInfo:res.data
           })
        }   
     })
  },
})